//
//  KFDMessage.m
//  KFD
//
//  Created by Lucky Luke on 8/12/15.
//  Copyright (c) 2015 kfd. All rights reserved.
//

#import "KFDMessageSummary.h"

@implementation KFDMessageSummary

-(instancetype)initWithDictionary:(NSDictionary *)dictionary
{
    if (self=[super initWithDictionary:dictionary]) {
        NSString* date=dictionary[@"dateline"];
        self.date=[NSDate dateWithTimeIntervalSince1970:date.integerValue];
        NSString* isnew=dictionary[@"isnew"];
        self.isnew=[isnew isEqualToString:@"1"]?YES:NO;
    }
    return self;
}

@end
